package self.hoy.demo.tof.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import self.hoy.demo.tof.entity.Menu;

import java.util.List;

@FeignClient(value = "menu")//menu provider 的 application name
public interface MenuFeign {

    @PostMapping("/menu/findAll")
//    List<Menu> findAll(Integer index, Integer limit);
    List<Menu> findAll(@RequestParam("index")Integer index, @RequestParam("limit")Integer limit);
}
